1 from oxsConfig
import ttk
, W
, E
, fJeti
, jetiTemperatureSourceVar
, jetiVoltageSourceVar
3 #define VOLTAGE_SOURCE VOLT_1 // select between VOLT_1, VOLT_2, VOLT_3 , VOLT_4, VOLT_5 , VOLT_6
4 #define TEMPERATURE_SOURCE NTC // select between MS5611 and NTC
6 ttk
.Label(fJeti
, text
="Voltage source").grid(column
= 0, row
=1, padx
= (15,5), pady
=(10,5) , sticky
=('E'))
7 ttk
.Label(fJeti
, text
="Temperature source" ).grid(column
= 0, row
=2, pady
=(15,5) , sticky
=('WE'))
8 jetiVoltageSourceBox
= ttk
.Combobox(fJeti
, textvariable
=jetiVoltageSourceVar
,
9 values
=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6' ),
11 jetiVoltageSourceBox
.grid(column
=1, row
=1, pady
=(15,5) ,sticky
=('W') )
12 jetiTemperatureSourceBox
= ttk
.Combobox(fJeti
, textvariable
=jetiTemperatureSourceVar
,
13 values
=('Not sent','MS5611', 'NTC' ),
15 jetiTemperatureSourceBox
.grid(column
=1, row
=2, pady
=(15,5) ,sticky
=('W') )